﻿namespace Luka.Log;

/// <summary>
/// 日志模型
/// </summary>
public class LoggingModel
{
    /// <summary>
    /// 日志描述
    /// </summary>
    public string Desc { get; set; }

    /// <summary>
    /// 日志路径
    /// </summary>
    public string Path { get; set; }

    /// <summary>
    /// 请求方法
    /// </summary>
    public string Method { get; set; }

    /// <summary>
    /// 请求表单
    /// </summary>
    public string Form { get; set; }

    /// <summary>
    /// 请求体
    /// </summary>
    public string Body { get; set; }

    /// <summary>
    /// 请求参数
    /// </summary>
    public string Query { get; set; }

    /// <summary>
    /// 返回结果
    /// </summary>
    public string Result { get; set; }

    /// <summary>
    /// 错误信息
    /// </summary>
    public string Error { get; set; }

    /// <summary>
    /// 错误堆栈
    /// </summary>
    public string StackTrace { get; set; }

    /// <summary>
    /// 日志时间
    /// </summary>
    public DateTime Date { get; set; } = DateTime.Now;

    /// <summary>
    /// 用户信息
    /// </summary>
    public string UserInfo { get; set; }

    /// <summary>
    /// 日志类型
    /// </summary>
    public string Type { get; set; } = "Info";

    /// <summary>
    /// 环境名称
    /// </summary>
    public string Environment { get; set; }
}